<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>生命周期</title>
    <link rel="stylesheet" href="./styles/index.css">
</head>
<body>
    <main id="main">
         <table>
             <thead>
                 <tr>
                     <td v-for="th in thArr">{{th}}</td>
                 </tr>
             </thead>
             <tbody>
                 <tr v-for="product in products">
                     <td>{{product.peoduct_id}}</td>
                     <td>{{product.name}}</td>
                     <td>{{product.category}}</td>
                     <td>{{product.modelType}}</td>
                     <td 
                     class="lookup"
                     v-on:click="showContent(product)">查看</td>
                 </tr>
             </tbody>
         </table>
         <div v-html="content"></div>
    </main>


    <script src="./plugins/vue.js"></script>
    <script src="./plugins/axios.min.js"></script>
    
    <script src="./scripts/index.js"></script>
</body>
</html>